import java.util.Scanner;

/**
 * Created with IntelliJ IDEA.
 * Description:程序逻辑控制
 * User: dings
 * Date: 2024-05-03
 * Time: 13:12
 */
public class Test {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        double sum = 0;
        int num = 0;
        while (scanner.hasNextInt()) {
            int a = scanner.nextInt();
            sum += a;
            num++;
        }
        System.out.println("平均值："+sum/num);
    }
    public static void main10(String[] args) {
        Scanner scanner = new Scanner(System.in);
        String str = scanner.nextLine();
        int num = scanner.nextInt();
        float a = scanner.nextFloat();
        double b = scanner.nextDouble();
        byte c = scanner.nextByte();
    }
    public static void main9(String[] args) {
        int n = 10;
        System.out.printf("%d\n",n);
    }
    public static void main8(String[] args) {
        System.out.println("System.out.println: "+"Hello world!"+" ");
        System.out.println("标记");
        System.out.print("System.out.print: "+"Hello world!"+" ");
        System.out.println("标记");
    }
    public static void main7(String[] args) {
        int sum = 0;
        for (int i = 1; i <= 10; i++) {
            sum += i;
        }
        System.out.println(sum);
    }
    public static void main6(String[] args) {
        int num = 1;
        while (num <= 100) {
            if (num % 3 != 0) {
                num++;
                continue;
            }
            System.out.print(num+" ");
            num++;
        }
    }
    public static void main5(String[] args) {
        int a = 1;
        while (a <= 10) {
            System.out.println(a);
            if(a == 5) {
                break;
            }
            a++;
        }
    }
    public static void main4(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int day = scanner.nextInt();
        switch (day) {
            case 1:
                System.out.println("星期一");
                break;
            case 2:
                System.out.println("星期二");
                break;
            case 3:
                System.out.println("星期三");
                break;
            case 4:
                System.out.println("星期四");
                break;
            case 5:
                System.out.println("星期五");
                break;
            case 6:
                System.out.println("星期六");
                break;
            case 7:
                System.out.println("星期日");
                break;
            default:
                System.out.println("输入数据不匹配");
                break;
        }
    }
    public static void main3(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int score = scanner.nextInt();
        if (score < 50) {
            System.out.println("不及格");
        } else if (score >= 50 && score < 60) {
            System.out.println("及格");
        } else if (score >= 60 && score < 70) {
            System.out.println("中等");
        } else if (score >= 70 && score < 80) {
            System.out.println("中等偏上");
        } else if (score >= 80 && score < 90) {
            System.out.println("良好");
        } else if (score >= 90 && score <= 100) {
            System.out.println("优秀");
        }else {
            System.out.println("数据错误");
        }
    }
    public static void main2(String[] args) {
        int a = 10;
        int b = 100;
        if (a > 5) {
            System.out.println(a);
        }else {
            System.out.println(b);
        }
    }

    public static void main1(String[] args) {
        //顺序结构
        System.out.println(1);
        System.out.println(2);
        System.out.println(3);
    }
}
